/*
 * Copyright (c) 2003-2005
 * XDoclet Team
 * All rights reserved.
 */
package org.xdoclet.plugin.hibernate.compositeId.inner_pk_class;

import java.io.Serializable;

/**
 * Test pojo to test composite-id with inner class PK class aproach.
 *
 * @hibernate.class table="composite-id-bean-tbl"
 */
public class InnerCompositeIdBean {
    /**
     * @hibernate.composite-id unsaved-value="none"
     */
    public Pk pk;

    public void setPk(Serializable pk) {
        this.pk = (Pk) pk;
    }

    public Serializable getPk() {
        return pk;
    }

    public static class Pk implements Serializable {
        private static final long serialVersionUID = 1L;
        /**
         * @hibernate.key-property position="1"
         */
        private Long id1;
        /**
         * @hibernate.key-property position="2" access="field"
         */
        private Long id2;
    }
}